#pragma once

class MidiMessage;
class MidiOutDevice
{
public:
	// Not really necessary but will get to at some point. 
	class MidiOutCaps {
	} midiOutCaps;

	MidiOutDevice(void);
	~MidiOutDevice(void);

	bool open(int devId);
	bool isOpen() { return _isOpen; }
	void close();

	bool sendMessage(MidiMessage &msg);

	static int getDeviceCount();
	static QString getDeviceName(int devId);
	static int getDeviceByName(QString devName);
private:
	void *_devHandle;
	bool _isOpen;
};

